home *** CD-ROM | disk | FTP | other *** search
- Path: stern.fokus.gmd.de!news
- From: Watson <sayegh@fokus.gmd.de>
- Newsgroups: comp.lang.c
- Subject: Re: Looking for a clear screen function
- Date: Tue, 20 Feb 1996 12:11:51 +0100
- Organization: GMD FOKUS - Research Institute for Open Communication Systems
- Message-ID: <3129AC77.5F25@fokus.gmd.de>
- References: <4gaeba$d9h@nkosi.well.com>
- NNTP-Posting-Host: pollux.fokus.gmd.de
- Mime-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-2
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.4 sun4m)
-
- rickyarm@well.com wrote:
- >
- > Hello there,
- >
- > Does anyone know of a clear screen function to use both in turboC++ on
- > a PC and one to use in standard C for Unix machines
-
- #include<stdio.h>
- for (int i=0;i<25;i++)
- printf("\n");
-
- This works at least on a screen with 25
- lines :-)
-
- There's no standard function to clear
- the screen. In TurboC I guess it's clrscr()
- (prototyped in <conio.h>), with Unix it's
- clear()/wclear() (<curses.h>).
- --
- * Greetinx from Watson (sayegh@fokus.gmd.de)
- http://www.fokus.gmd.de/ovma/employees/sayegh/entry.html
- signal(SIGSEGV,SIG_IGN);
-